package com.sgb.kjwl.model.entity.pick;

import com.swgk.core.util.DateUtils;

import java.util.List;

public class TenderInquiryType {

    private String question;  //疑问事项
    private String comprehend;  //我的理解
    private String requestAnswer;  //请求答复
    private String inquiryTypeName;  //函询类型名称
    private String created;  //创建时间
    private String answer;  //回复
    private String answerTime;  //回复时间
    private List<CustomField> customFieldList;  //自定义字段

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getComprehend() {
        return comprehend;
    }

    public void setComprehend(String comprehend) {
        this.comprehend = comprehend;
    }

    public String getRequestAnswer() {
        return requestAnswer;
    }

    public void setRequestAnswer(String requestAnswer) {
        this.requestAnswer = requestAnswer;
    }

    public String getInquiryTypeName() {
        return inquiryTypeName;
    }

    public void setInquiryTypeName(String inquiryTypeName) {
        this.inquiryTypeName = inquiryTypeName;
    }

    public String getCreated() {
        if (created == null)
            return "";
        if (!"".equals(created))
            return DateUtils.stampToMinute(created) + "";
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getAnswerTime() {
        if (answerTime == null)
            return "";
        if (!"".equals(answerTime))
            return DateUtils.stampToMinute(answerTime) + "";
        return answerTime;
    }

    public void setAnswerTime(String answerTime) {
        this.answerTime = answerTime;
    }

    public List<CustomField> getCustomFieldList() {
        return customFieldList;
    }

    public void setCustomFieldList(List<CustomField> customFieldList) {
        this.customFieldList = customFieldList;
    }

    public static class CustomField{
        private String title;
        private String value;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public CustomField(String title, String value) {
            this.title = title;
            this.value = value;
        }
    }
}
